package com.student.Activitys.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.student.Activitys.R;
import com.student.Activitys.activity.base.BaseActivity;
import com.student.Activitys.utils.JumperUtils;

import butterknife.Bind;
import butterknife.OnClick;

import static com.student.Activitys.R.id.layout_party_build;

/**
 * 项目名称：智慧校园学生端
 * 类描述：思政中心
 * 创建人：张飞祥
 * 创建时间：2017/10/11 13:30
 * 修改人：张飞祥
 * 修改时间：2017/10/11 13:30
 * 修改备注：
 */
public class PartyActivity extends BaseActivity {

    @Bind(R.id.iv_return)
    ImageView ivReturn;
    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(layout_party_build)
    RelativeLayout layoutPartyBuild;
    @Bind(R.id.layout_party_apply)
    RelativeLayout layoutPartyApply;
    @Bind(R.id.layout_party_see)
    RelativeLayout layoutPartySee;

    @Override
    protected void initUI() {
        setContentView(R.layout.act_party);
        //设置标题
        tvTitle.setText("思政中心");
        //显示返回按钮
        ivReturn.setVisibility(View.VISIBLE);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void getNotData() {

    }

    /**
     * 点击事件
     *
     * @param view
     */
    @OnClick({R.id.iv_return,R.id.layout_party_build,R.id.layout_party_apply,R.id.layout_party_see})
    public void OnClick(View view) {
        switch (view.getId()) {
            case R.id.iv_return:              //退出
                finish();
                break;
            case R.id.layout_party_build:    //团·党建信息
                JumperUtils.JumpTo(PartyActivity.this,PartyMsgActivity.class);
                break;
            case R.id.layout_party_apply:    //入党申请
                JumperUtils.JumpTo(PartyActivity.this,PartyApplyActivity.class);
                break;
            case R.id.layout_party_see:      //入党申请查看
                JumperUtils.JumpTo(PartyActivity.this,PartyApplySeeActivity.class);
                break;
        }
    }
}
